#ifndef VRP_COMMON_MATERIAL_INCLUDED
#define VRP_COMMON_MATERIAL_INCLUDED
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"


// 计算粗糙度
real VPerceptualSmoothnessToPerceptualRoughness(real perceptualSmoothness)
{
    return (1.0 - perceptualSmoothness);
}

// 计算粗糙度的平方
real VPerceptualRoughnessToRoughness(real perceptualRoughness)
{
    return perceptualRoughness * perceptualRoughness;
}
#endif